package study.domain.user;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;

import org.springframework.security.core.GrantedAuthority;

import com.barney.support.domain.HasCreatedDate;

/**
 * 권한
 *
 * @author Barney Kim
 */
@Data
public class Authority implements Serializable, GrantedAuthority, HasCreatedDate {

	private static final long serialVersionUID = 1087013002255068256L;

	private Long userId;

	private String role;

	private Date createdDate;

	public String getAuthority() {
		return role;
	}
}
